package adv3;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * @author oldliu
 * @since 1.0
 */
public class ArraysTest {
    public static void main(String[] args) {
        List<Integer> list = Arrays.asList(1, 2, 3, 5, 67, 788, 888, 1000);
        List<Integer> l=new ArrayList<>(list);
        //l.addAll(list);
        System.out.println(l);
        Integer[] ar = l.toArray(new Integer[0]);
        ar=Arrays.copyOf(ar,30);
        System.out.println(Arrays.toString(ar));
    }
}
